﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Accounting.aspx.cs" Inherits="admin_Accounting_Accounting" MasterPageFile="~/admin/MasterPage2.master" %>



<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>


<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
     <table cellpadding="0" cellspacing="0" class="letraNegra13" width="1100px" 
        align="center">
    <!--  **********   PAge HEader-->
    <tr><td>
      
        
        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc1:ToolkitScriptManager>

        </td>
    </tr>
    <!--  **********   PAge Body-->
     <tr>
        <td  bgcolor="White">
          
                <!--  **********   PAge Deposit-->
                
               
            
               
          
         </td>
    </tr>
       <tr>
                                                                    <td bgcolor="White">
                                                                    <asp:Panel ID="pemployee" runat="server" >
                                                                    <table><tr><td>
                                                                    <asp:Panel ID="preport" runat="server">
                                                                        <table align="center" class="popup" width="700">
                                                                            <tr>
                                                                                <td class="letraGrande" colspan="4" style="text-align: center">
                                                                                    Account Report</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    Start Date:</td>
                                                                                <td>
                                                                                    <asp:TextBox ID="tb_startdate" runat="server" Width="185px"></asp:TextBox>
                                                                                    <cc1:CalendarExtender ID="tb_startdate_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                                        Enabled="True" TargetControlID="tb_startdate">
                                                                                    </cc1:CalendarExtender>
                                                                                </td>
                                                                                <td>
                                                                                    End Date:</td>
                                                                                <td>
                                                                                    <asp:TextBox ID="tb_enddate" runat="server" Width="185px"></asp:TextBox>
                                                                                    <cc1:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                                        Enabled="True" TargetControlID="tb_enddate">
                                                                                    </cc1:CalendarExtender>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="style3">
                                                                                    Client</td>
                                                                                <td class="style3">
                                                                                    <asp:DropDownList ID="cb_client" runat="server" CssClass="txtForm" 
                                                                                        Width="190px">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                                <td class="style3">
                                                                                    Paid</td>
                                                                                <td class="style3">
                                                                                    <asp:DropDownList ID="cb_paid" runat="server" CssClass="txtForm" Width="190px">
                                                                                        <asp:ListItem>Select One</asp:ListItem>
                                                                                        <asp:ListItem>Yes</asp:ListItem>
                                                                                        <asp:ListItem>No</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    Company</td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="cb_company" runat="server" CssClass="txtForm" 
                                                                                        Width="190px">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                                <td>
                                                                                    &nbsp;</td>
                                                                                <td>
                                                                                    <asp:Label ID="Label3" runat="server" CssClass="letraRojaValidacion"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    &nbsp;</td>
                                                                                <td>
                                                                                    &nbsp;</td>
                                                                                <td colspan="2">
                                                                                    <asp:LinkButton ID="lnk_search" runat="server" CssClass="button2_ok" 
                                                                                        ForeColor="White" onclick="lnk_search_Click"  ><span>Search</span></asp:LinkButton>
                                                                                    <asp:LinkButton ID="lnk_cancelcancel1" runat="server" CssClass="button2_ok" 
                                                                                        ForeColor="White" onclick="lnk_cancelcancel1_Click" ><span>Cancel</span></asp:LinkButton>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        </asp:Panel>
                                                                     
                                                                        <cc1:ModalPopupExtender ID="preport_ModalPopupExtender" runat="server"  BackgroundCssClass="FondoAplicacion"
                                                                            DynamicServicePath="" Enabled="True" TargetControlID="generatereport" PopupControlID="preport">
                                                                        </cc1:ModalPopupExtender>
                                                                       
                                                                     </td>
                                                                </tr>
     <!--  **********   Seccions ModalPopup Panel-->
     <tr>
        <td  bgcolor="White">
          
                                                                    <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                            
                    ID="generatereport" onclick="generatereport_Click" ><span>Generate Report</span></asp:LinkButton>
                
               
            
               
               
            </td></tr></table>
            </asp:Panel>
          
         </td>
    </tr>
     <tr>
        <td  bgcolor="White">
          
                                                                                                       
            <CR:CrystalReportViewer ID="Accounting_Report" runat="server" 
                AutoDataBind="true" ToolPanelWidth="100%" />
               
            
               
               
            
          
         </td>
    </tr>
     <tr><td bgcolor="White" >
                                                        <cc1:tabcontainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                                                            Width="1100px">
                                                            
                                                           
                                                        </cc1:tabcontainer>
       

                                                    </td></tr>
     <tr> 
     <td bgcolor="White">
                                                        <asp:Panel ID="PAdd" runat="server">
                                                            <table cellpadding="0" cellspacing="0" class="style1">
                                                                <tr>
                                                                    <td>
                                                                        <ul>
                                                                            <li><a class="letraNegra16" 
                        href="detailDeposit.aspx">Add Deposit</a></li>
                                                                        </ul>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
     </td>
     </tr>

      <tr> 
     <td bgcolor="White">
                                                        &nbsp;
                                                        <asp:Panel ID="PDeposit" runat="server">
                                                            <table width="700px" 
                                                                        style="margin-top: 0px" align="center">
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                            ID="bt_adddep" OnClick="Button2_Click"><span>Add Deposit</span></asp:LinkButton>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:TreeView runat="server" CssClass="popup" Font-Names="Arial Narrow" 
                                                                            ID="TreeView1">
                                                                            <HoverNodeStyle Font-Bold="True" Font-Underline="False"></HoverNodeStyle>
                                                                            <NodeStyle HorizontalPadding="0px" NodeSpacing="2px" VerticalPadding="1px" 
                                                                                Font-Bold="False" Font-Names="Arial Narrow" Font-Size="10pt" ForeColor="Black">
                                                                            </NodeStyle>
                                                                            <ParentNodeStyle Font-Bold="True"></ParentNodeStyle>
                                                                            <RootNodeStyle Font-Bold="True" Font-Size="14pt"></RootNodeStyle>
                                                                            <SelectedNodeStyle HorizontalPadding="0px" VerticalPadding="0px" 
                                                                                BackColor="Black" Font-Underline="False" ForeColor="AliceBlue">
                                                                            </SelectedNodeStyle>
                                                                        </asp:TreeView>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
     </td>
     </tr>
     <tr> 
     <td bgcolor="White">
                                                        &nbsp;
                                                        <asp:Panel ID="PPaypal" runat="server">
                                                            <table width="700px" 
                                                                        style="margin-top: 0px" align="center">
                                                                <tr>
                                                               
                                                                    <td align="left">
                                                                        <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                            ID="LinkButton2" OnClick="LinkButton2_Click"><span>Add Paypal Deposit</span></asp:LinkButton>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:TreeView runat="server" CssClass="popup" Font-Names="Arial Narrow" 
                                                                            ID="TreeView2">
                                                                            <HoverNodeStyle Font-Bold="True" Font-Underline="False"></HoverNodeStyle>
                                                                            <NodeStyle HorizontalPadding="0px" NodeSpacing="2px" VerticalPadding="1px" 
                                                                                Font-Bold="False" Font-Names="Arial Narrow" Font-Size="12pt" ForeColor="Black">
                                                                            </NodeStyle>
                                                                            <ParentNodeStyle Font-Bold="True"></ParentNodeStyle>
                                                                            <RootNodeStyle Font-Bold="True" Font-Size="16pt"></RootNodeStyle>
                                                                            <SelectedNodeStyle HorizontalPadding="0px" VerticalPadding="0px" 
                                                                                BackColor="#B5B5B5" Font-Underline="False"></SelectedNodeStyle>
                                                                        </asp:TreeView>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
     </td>
     </tr>
    <!--  **********   PAge Footer-->
    
   
    
     <tr> 
     <td bgcolor="White">
                                                        <asp:Panel ID="PBanks" runat="server">
                                                            <table align="center" cellpadding="0" cellspacing="0" 
                                                                         width="1000px">
                                                                <tr>
                                                                    <td>
                                                                        <asp:ImageButton runat="server" ImageUrl="~/blank.gif" ID="img_blank" 
                                                                            OnClick="img_blank_Click">
                                                                        </asp:ImageButton>
                                                                        <asp:Label runat="server" Font-Bold="True" Font-Names="Arial Narrow" 
                                                                            Font-Size="20pt" ForeColor="Red" ID="lb_error" Visible="False"></asp:Label>
                                                                        <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                            ID="bt_addbank" OnClick="Button1_Click"><span>Add Bank</span></asp:LinkButton>
                                                                        <cc1:ModalPopupExtender runat="server" PopupControlID="pnlEditBank" 
                                                                            BackgroundCssClass="FondoAplicacion" DynamicServicePath="" Enabled="True" 
                                                                            TargetControlID="bt_addbank" ID="pnlEditBank_ModalPopupExtender">
                                                                        </cc1:ModalPopupExtender>
                                                                    </td>
                                                                </tr>
                                                                <tr align="center">
                                                                    <td>
                                                                        <cc1:Accordion runat="server" ID="acc" TransitionDuration="100" FramesPerSecond="80" 
                                                                            HeaderCssClass="accordion" HeaderSelectedCssClass="accordionSelected" 
                                                                            ContentCssClass="" CssClass="popup" Width="600px"  >
                                                                        </cc1:Accordion>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" bgcolor="White">
                                                                        &nbsp;</td>
                                                                </tr>
                                                               
                                                                <tr>
                                                                    <td bgcolor="White">
                                                                        <asp:Panel runat="server" CssClass="popup" Width="433px" ID="pnlEditBank">
                                                                            <table class="letraNegra13" width="433">
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        <asp:Label runat="server" Text="Bank Name" ID="lb_bankname"></asp:Label>
                                                                                    </td>
                                                                                    <td style="text-align: center">
                                                                                        <asp:TextBox runat="server" CssClass="txtForm" Width="200px" ID="tb_bank_name"></asp:TextBox>
                                                                                    </td>
                                                                                    <td align="center" rowspan="3" valign="middle">
                                                                                        <asp:Image runat="server" ImageUrl="~/img/blank.png" ID="img_icon">
                                                                                        </asp:Image>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        <asp:Label runat="server" Text="Account  Number" ID="Label2"></asp:Label>
                                                                                    </td>
                                                                                    <td style="text-align: center">
                                                                                        <asp:TextBox runat="server" CssClass="txtForm" Width="200px" 
                                                                                            ID="tb_bank_number"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        Type</td>
                                                                                    <td style="text-align: center">
                                                                                        <asp:DropDownList runat="server" CssClass="txtForm2" Width="195px" 
                                                                                            ID="cb_typebank">
                                                                                            <asp:ListItem Value="0">Select One</asp:ListItem>
                                                                                            <asp:ListItem Value="1">PSF Banks</asp:ListItem>
                                                                                            <asp:ListItem Value="2">Client&#39;s Banks</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        Image Icon</td>
                                                                                    <td style="text-align: center">
                                                                                        <asp:FileUpload runat="server" CssClass="txtForm" Width="200px" ID="File1">
                                                                                        </asp:FileUpload>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td style="text-align: center">
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td align="center">
                                                                                        <table align="center">
                                                                                            <tr>
                                                                                                <td>
                                                                                                    <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                                                        ID="lnk_save_bank" OnClick="lnk_save_bank_Click"><span>Save</span></asp:LinkButton>
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                                                        ID="LinkButton1" OnClick="LinkButton1_Click"><span>Delete</span></asp:LinkButton>
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                                                        ID="lnk_cancel_bank" OnClick="lnk_cancel_bank_Click"><span>Cancel</span></asp:LinkButton>
                                                                                                </td>
                                                                                                <td>
                                                                                                    &nbsp;</td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                    <td style="text-align: center">
                                                                                        <asp:Panel runat="server" CssClass="popup" Width="250px" ID="P_cancel">
                                                                                            <table class="style2">
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td colspan="3">
                                                                                                        Do you want to remove
                                                                                                        <asp:Label runat="server" Text="Label" ID="lb_namebank"></asp:Label>
                                                                                                        &nbsp; bank?</td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                                                            ID="lnk_okcancel" OnClick="lnk_okcancel_Click"><span>OK</span></asp:LinkButton>
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <asp:LinkButton runat="server" CssClass="button2_ok" ForeColor="White" 
                                                                                                            ID="lnk_cancelcancel" OnClick="lnk_cancelcancel_Click"><span>Cancel</span></asp:LinkButton>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </asp:Panel>
                                                                                        <cc1:ModalPopupExtender runat="server" PopupControlID="P_cancel" 
                                                                                            DynamicServicePath="" Enabled="True" TargetControlID="LinkButton1" 
                                                                                            ID="P_cancel_ModalPopupExtender">
                                                                                        </cc1:ModalPopupExtender>
                                                                                    </td>
                                                                                    <td>
                                                                                        &nbsp;</td>
                                                                                </tr>
                                                                            </table>
                                                                        </asp:Panel>
                                                                    </td>
                                                                </tr>
                                                                
                                                              

                                                            </table>
                                                        </asp:Panel>
     </td>
     </tr>
     
       <tr>
    <td bgcolor="White">
    <asp:Panel ID="client" runat="server">
        <table align="center" cellpadding="0" cellspacing="0" class="popup" width="800">
            
            <tr align="center">
                <td align="center">
                <asp:Panel ID="pclientreport" runat="server">
                    <table align="center" class="popup" width="700">
                        <tr>
                            <td class="letraGrande" colspan="4" style="text-align: center">
                                Account Report</td>
                        </tr>
                        <tr>
                            <td>
                                Start Date:</td>
                            <td>
                                <asp:TextBox ID="tb_startdatecl" runat="server" Width="185px"></asp:TextBox>
                                <cc1:CalendarExtender ID="tb_startdatecl_CalendarExtender" runat="server" 
                                    Enabled="True" Format="MM/dd/yyyy" TargetControlID="tb_startdatecl">
                                </cc1:CalendarExtender>
                            </td>
                            <td>
                                End Date:</td>
                            <td>
                                <asp:TextBox ID="tb_enddatecl" runat="server" Width="185px"></asp:TextBox>
                                <cc1:CalendarExtender ID="tb_enddatecl_CalendarExtender" runat="server" 
                                    Enabled="True" Format="MM/dd/yyyy" TargetControlID="tb_enddatecl">
                                </cc1:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Paid</td>
                            <td class="style3">
                                <asp:DropDownList ID="cb_paidcl" runat="server" CssClass="txtForm" 
                                    Width="190px">
                                    <asp:ListItem>Select One</asp:ListItem>
                                    <asp:ListItem>Yes</asp:ListItem>
                                    <asp:ListItem>No</asp:ListItem>
                                </asp:DropDownList>
                                <asp:Label ID="Label6" runat="server" CssClass="letraRojaValidacion"></asp:Label>
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                            <td class="style3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td colspan="2">
                                <asp:LinkButton ID="lnk_search0" runat="server" CssClass="button2_ok" 
                                    ForeColor="White" onclick="lnk_search0_Click"><span>Search</span></asp:LinkButton>
                                <asp:LinkButton ID="lnk_cancelcancel2" runat="server" CssClass="button2_ok" 
                                    ForeColor="White" onclick="lnk_cancelcancel1_Click"><span>Cancel</span></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                                   </asp:Panel> 
                                   <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"  BackgroundCssClass="FondoAplicacion"
                                     DynamicServicePath="" Enabled="True" TargetControlID="lnk_clientreport" PopupControlID="pclientreport">
                                   </cc1:ModalPopupExtender>
                                   
                                   </td>
                
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="lnk_clientreport" runat="server" CssClass="button2_ok" 
                        ForeColor="White"><span>Generate  Report</span></asp:LinkButton>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr align="center">
                <td>
                    <asp:TextBox ID="tb_orders" runat="server" Height="132px" TextMode="MultiLine" 
                        Width="631px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style5" >
                    <asp:LinkButton ID="lnk_searchcl" runat="server" CssClass="button2_ok" 
                        ForeColor="White" onclick="lnk_searchcl_Click"><span>Search</span></asp:LinkButton>
                    <asp:Label ID="lb_mensaje" runat="server" CssClass="letraRojaValidacion"></asp:Label>
                </td>
                
            <tr>
                <td colspan="2" >
                <asp:Panel ID="Panel2" runat="server">
                    <asp:GridView ID="gv_multiple" runat="server" AutoGenerateColumns="False" 
                                                        Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders to Pay&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                        GridLines="Horizontal" 
                        onrowdatabound="gv_multiple_RowDataBound" ShowFooter="True" 
                                                        Width="800px" BackColor="White" 
                        BorderColor="#CCCCCC" BorderStyle="None" 
                                                        BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                                        CssClass="letraNegra13">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="CHBX1" runat="server" TextAlign="Left" />
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" 
                                                                        NavigateUrl='<%#"~/admin/ODetils.aspx?id=" + Eval("orderid") %>' 
                                                                        Width="80px"><%# Eval("Order #")%></asp:HyperLink>
                                                                   
                                                                    <asp:Label ID="lb_order" runat="server" Text='<%# Eval("orderid")%>' 
                                                                        TextAlign="Left" Visible="false" Width="10px" />
                                                                    <asp:Label ID="lbcompany" runat="server" Text='<%# Eval("Company")%>' 
                                                                        TextAlign="Left" Width="80px" />
                                                                    <asp:Label ID="lbacc" runat="server" Text='<%# Eval("Account")%>' 
                                                                        Width="80px" />
                                                                    <asp:Label ID="ltype" runat="server" Text='<%# Eval("Type")%>' Width="50px" />
                                                                    <asp:Label ID="lbaddress" runat="server" Text='<%# Eval("Street")%>' 
                                                                        Width="50px" />
                                                                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("Street Address")%>' 
                                                                        Width="100px" />
                                                                    <asp:TextBox ID="tbx_fee" runat="server" Text='<%# Eval("fee")%>' Enabled="false" 
                                                                        Width="40px" />
                                                                         <asp:TextBox ID="tbx_psfprice" runat="server" Text='<%# Eval("psffee")%>' 
                                                                        Width="40px" />
                                                                    <asp:TextBox ID="isPaid" runat="server" Text='<%# Eval("Paid")%>' 
                                                                        Width="10px" />
                                                                    <asp:Image ID="image" runat="server" ImageUrl="~/img/checkdone.png" />
                                                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("PaidDate")%>' 
                                                                        Width="100px" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                        <AlternatingRowStyle BorderStyle="None" />
                                                        
                                                        <HeaderStyle Font-Bold="True" ForeColor="Black" />
                                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                                    
                                                    </asp:GridView>
                </asp:Panel>
                                    </td>
                
            </tr>
            <tr><td>
                <asp:LinkButton ID="lnk_Assign" runat="server" CssClass="button2_ok" 
                    Enabled="False" ForeColor="White" onclick="lnk_Assign_Click"><span>Save</span></asp:LinkButton>
                </td></tr>
            <tr>
                                <td align="center" colspan="2">
                              
                                <asp:Panel ID="pnlClick" runat="server" CssClass="caption">
                                      
                                  
                                    <asp:Image ID="imgArrows" runat="server" />
                                    <asp:Label ID="lblMessage" runat="server" Text="Label" />
                                    &nbsp;Orders Paid
                                  
                                   
                                    <div style="clear:both"></div>
                                    
                                    </asp:Panel>
                                 <asp:panel runat="server" id="Plistorder" >
                               
                                 
                                    <table width="800"  >
                                    <tr><td>
                                        <asp:GridView ID="gv_order" runat="server" HorizontalAlign="Center" 
                                            onrowdatabound="gv_order_RowDataBound" Width="800px" 
                                            
                                             onrowcommand="gvd_RowCommand" 
                                             CssClass="letraNegra13" BackColor="White" BorderColor="#CCCCCC" 
                                            BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                            GridLines="Horizontal" AutoGenerateColumns="False" onrowediting="gv_order_RowEditing" 
                                            HeaderStyle-CssClass="letraAzul14" AllowPaging="True" PageSize="500"
                                           >
                                            <Columns>
                                            
                                              <asp:TemplateField><ItemTemplate>
                                             <asp:ImageButton ID="bt_editdetail"   OnClick="editdetail" Visible="true" Text="Edit" runat="server" ImageUrl="~/img/icon_content_small.gif" />
                                             <asp:ImageButton ID="bt_savedetail"   OnClick="savedetail" Visible="false" Text="Save" runat="server" ImageUrl="~/img/save_as.png"/>
                                             </ItemTemplate> </asp:TemplateField>
                                           
                                                <asp:TemplateField HeaderText= "Order #" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                                                                             
                                                                   
                                                 <asp:Label ID="lbClient" runat="server" Text='<%# Eval("Order #")%>'  TextAlign="Left" Width="80px" />
                                                 </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                 
                                                 <asp:TemplateField HeaderText= "" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_order" runat="server" Text='<%# Eval("orderid")%>' 
                                                                        TextAlign="Left" Visible="false" Width="10px" />
                                                  </ItemTemplate>
                                                     <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                  <asp:TemplateField HeaderText= "Account" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="lbacc" runat="server" Text='<%# Eval("Account")%>' 
                                                                        Width="70px" />
                                                    </ItemTemplate>
                                                      <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Type" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="ltype" runat="server" Text='<%# Eval("Type")%>' Width="40px" />
                                                     </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "St #" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="lbaddress" runat="server" Text='<%# Eval("Street")%>' 
                                                                        Width="50px" />
                                                    </ItemTemplate>
                                                          <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Address" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Street Address")%>' 
                                                                        Width="90px" />
                                                    </ItemTemplate>
                                                          <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Fee" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:TextBox ID="tbx_fee" runat="server" Text='<%# Eval("fee")%>' 
                                                                        Width="30px" Enabled="false" />
                                                    </ItemTemplate>
                                                          <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                     <asp:TemplateField HeaderText= "My Fee" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:TextBox ID="tbx_psffee" runat="server" Text='<%# Eval("psffee")%>' 
                                                                        Width="30px" Enabled="false" />
                                                    </ItemTemplate>
                                                         <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Paid" HeaderStyle-HorizontalAlign="Left" Visible="false"><ItemTemplate>
                                                                    <asp:TextBox ID="isPaid" runat="server" Text='<%# Eval("Paid")%>' 
                                                                        Width="10px" Visible="false" />
                                                    </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Paid" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                      <asp:CheckBox ID="CHBX3" runat="server" TextAlign="Left"  Enabled="false" Visible="false"  />
                                                                    <asp:Image ID="image" runat="server" ImageUrl="~/img/checkdone.png" />
                                                   </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Paid Date" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                     <asp:Label ID="Label1" runat="server" Text='<%# Eval("PaidDate")%>' 
                                                                        Width="100px" />
                                                    </ItemTemplate>
                                                          <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Status" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                     <asp:Label ID="lstatus" runat="server" Text='<%# Eval("Status")%>' 
                                                                        Width="100px" />
                                                                   
                                                     </ItemTemplate>
                                                          <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                
                                            </Columns>
                                            
                                            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                            <HeaderStyle HorizontalAlign="Left" BackColor="#ffffff" Font-Bold="True" 
                                                ForeColor="Blue" />
                                            
                                            <PagerSettings Position="Top" />
                                            <PagerStyle CssClass="letraAzul" />
                                            
                                            <SelectedRowStyle BackColor="#00ff00" Font-Bold="True" ForeColor="White" />
                                          
                                        </asp:GridView>
                                        </td>
                                        </tr>
                                        </table>
                                                      
                                  </asp:panel>
                           <cc1:CollapsiblePanelExtender
                                        ID="CollapsiblePanelExtender1"
                                        runat="server"
                                        CollapseControlID="pnlClick"
                                        Collapsed="true"
                                        ExpandControlID="pnlClick"
                                        TextLabelID="lblMessage"
                                        CollapsedText=" "
                                        ExpandedText=" "
                                        ImageControlID="imgArrows"
                                        CollapsedImage="~/img/pluspanel.png"
                                        ExpandedImage="~/img/minuspanel.png"
                                        ExpandDirection="Vertical"
                                        TargetControlID="Plistorder"
                                        ScrollContents="false">
                                        </cc1:CollapsiblePanelExtender>
                                </td>
                                
                            </tr>
        </table>
        </asp:panel>
           </td>
   </tr> 
   
    
       <tr>
    <td bgcolor="White">
        &nbsp;</td>
   </tr> 
   
    
    </table>


</asp:Content>


<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        
.item td { vertical-align:top; }



        .style2
        {
            width: 80%;
        }



        .style3
        {
            height: 24px;
        }



        .style5
        {
            width: 743px;
        }



    </style>
    </asp:Content>